package cn.hongyu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class RestfulController {
    @RequestMapping(value = "/rest1/{name}")
    @ResponseBody
    void rset1(@PathVariable(value = "name") String name) {
        System.out.println(name);
    }
}
